import request from '@/utils/request'

export default {
  getAllStudent(searchModel){  //获取列表中学生信息 以及搜索学生信息
    return request({
      url: `/system/student/allStudent/${searchModel.pageNo}/${searchModel.pageSize}`,
      method: 'get',
      params:{
        // pageNo: searchModel.pageNo,
        // pageSize: searchModel.pageSize,
        clazzName: searchModel.clazz,
        name: searchModel.name,
      }
    });
  },
  getByclass(searchModel){
    return request({
      url: `/system/student/getByClass/${searchModel.pageNo}/${searchModel.pageSize}`,
      method: 'get',

    })
  },
  addStudent(student){  //添加学生用户
    return request({
      url: "/system/student/addOrUpdateStudent",
      method: 'post',
      data: student
    });
  },
  getById(uid){    // 通过学生id 进行回显
    return request({
      url: `/system/student/${uid}`,
      method: 'get',
    });
  },
  deleteById(id){  // 通过id 删除学生信息
    return request({
      url: `/system/student/id/${id}`,
      method: 'delete',
      // data: student
    });
  }, 
  getxlZC(){
    return request({
      url: '/teacher/xialacaidan',
      method: 'get',
      data: lo
    })
  },
  getstucount(){
    return request({
        url: 'system/student/countall',
        method: 'get'
        

    })
  } 



}